<?php

$redis = new Redis();

$redis->connect('127.0.0.1', 6379);

$key = 'user.score';

$redis->lpush($key, rand(1,100));

$redis->expire($key, 120);

$data = [
	'ttl' => $redis->ttl($key),
	'data' => $redis->lRange($key, 0, -1)
];
var_dump($data);